package com.webshop.account.controller;

import com.webshop.account.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by LBG on 2019/6/23.
 */
@RestController
@RequestMapping("/login")
public class LoginController {

    @Autowired
    private AccountService accountService;

    @RequestMapping("/dologin")
    public Map<String, Object> doLogin(String userName, String password) {
        return accountService.doLogin(userName, password);
    }
}
